<template>
	<view class="guang-gao">
		<view class="guang-gao-cone" >
			<view class="item" :class="type?'two':'one'" v-for="item in size" :key='item'>
				<view class="asdasd">
					我想我是广告
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"guang-gao",
		data() {
			return {
				
			};
		},
		props:{
			size:{
				type:Number,
				default:2,
			},
			type:{
				type:Boolean,
				default:true
			}
		}
	}
</script>

<style scoped lang="scss">
.guang-gao{
	.guang-gao-cone{
		display: flex;
		flex-wrap: wrap;
			box-sizing: border-box;
		.two{
			box-sizing: border-box;
			width: 50%;
			padding: 5px;
		}
		.item{
			height: 80px;
		}
		.asdasd{
			height: 100%;
			width: 100%;
			background: #efefef;
			border-radius: 5px;
			color: #ccc;
			display: flex;
			justify-content: center;align-items: center;
		}
	}
}
</style>
